#include <iostream>
#include <string>
#include <vector>       //vector<bool>
#include <iterator>
#include <algorithm>
#include <sstream>
#include <limits>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cstring>      //strlen()
#include <climits>      //ULONG_MAX
#include <cmath>      //ULONG_MAX
using namespace std;

const short last_printable_char = 126;
const short first_printable_char = 35;
const short base = last_printable_char-first_printable_char+1;

void ToBase(unsigned long long number, string& out) {
	while(number) {
		out += (char)((number%base)+first_printable_char);
		number /=base;
	}
	reverse(out.begin(), out.end());
}

unsigned long long FromBase(const string& data) {
	unsigned long long number = 0;
	for(short i = 0; i < data.size(); ++i) {
		//number = (number*base + (unsigned long long)symbols.find(data[i])); 
		number = (number*base + (unsigned long long)(data[i]-first_printable_char)); 
	}
	return number;
}

void decoder(const string& number, string& O) {
	stringstream decode(number);
	stringstream decode_out(stringstream::in | stringstream::out);
	string I;
	unsigned long long num = 0;
	while (decode >> I) {
		decode_out.str("");
		decode_out.clear();
		num = FromBase(I);
		decode_out << num;
		decode_out >> I;
		O += I;
	} 
}

void encoder(const string& number, stringstream& encode_out) {
	stringstream encode_in(stringstream::in | stringstream::out);
	string I;
	unsigned long long num = 0;
	for(short p = 0; p < number.size();){
		short pos = 19;
		while(number[p+pos] == '0') pos--;
		I = number.substr(p, pos);
		encode_in.clear();
		encode_in.str("");

		encode_in << I;
		encode_in >> num;
		I.clear();
		ToBase(num, I);
		encode_out << I;
		p += pos;
		if(p < number.size())
			encode_out << ' ';
	}
}

#if ON
//Decode
int main() {
	string n;
	getline(cin, n);
	do {
		string O;
		decoder(n, O);
		cout << O << endl;
		getline(cin, n);
	} while(cin.eof() == false);
	return 0;
}
# else 
// Encode
int main() {
	/*unsigned long long a = 18446744073709551615;
	string i;
	ToBase(a, i);
	cout << i << endl;
	cout << FromBase(i) << endl;
	return 0;
	*/
	string n;
	stringstream encode_out(stringstream::in | stringstream::out);
	cin >> n;
	cout << "{" << endl;
	do {
		encode_out.clear();
		encode_out.str("");
		encoder(n, encode_out);
		cout << "\""<< encode_out.str() << "\"," << endl;
		cin >> n;
	} while(cin.eof() == false);
	cout << "}" << endl;
	return 0;
}
#endif
